<? $page_title='采购需求汇总记录' ?>
<?include "FASHION/page_header.phtml"?>
<script language="JavaScript" src="<?php echo $root; ?>/util/datepicker/WdatePicker.js"></script>

<form method="get">
        单据号：<?= Html::options2(array( 'data'=>$demands, 'tips'=>'', 'val'=>fetch_a_string('demands'),'val_key'=>fetch_a_string('demands'), 'name'=>'demands')) ?>
	<?= htmlutil::makeTimesRangeBox() ?>
	&nbsp; <input type="submit" value="搜索" />
</form>

<table border="0" class="list"><tbody>
<tr class="nobg">
	<th>相关单据号</th>
	<th>总数量</th>
	<th>订单状态</th>
	<th>用户</th>
	<th>时间</th>
	<th>操作</th>
</tr>
<? foreach($list as $d){ ?>
<tr>
	<td width="25%"><div class="text"><?$d.demands?></div></td>
	<td><div class="decimal"><{$d.amount}></div></td>
	<td class="state"><?= SummaryHelper::flow2text($d.flow) ?></td>
	<td><?$d.user_name?></td>
	<td class="nowrap"><?=date('Y/m/d H:i', $d.addtime)?></td>
	<td>
		<a href="<?url("procsum-view/id/".$d.id)?>" class="view" title="查看"></a>
	</td>
</tr>
<? } ?>
</tbody></table>

<? Html::pager($pager) ?>

<?include "FASHION/page_footer.phtml"?>
